<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../js/jquery/jquery-1.3.1.js"></script>
<script type="text/javascript">
	function sendDataToAction(){
	

alert( document.getElementById("lastName").value );
alert( document.getElementById("firstName").value );
			   
		
			   
					
var list = document.getElementById("department");
res = list.options[list.selectedIndex].value;
alert(res);	
		return false;
	}

</script>
</head>
<body>
<div class="result">====</div>

<form onsubmit="return sendDataToAction();" method="post"><!-- action="AddHW" method="post" -->
														<div class="newPanel">
															<div class="newParam">Прізвище</div>
															<div class="newValue"><input type="text" name="lastName" id="lastName"/></div>
															<div class="newParam">Ім'я</div>
															<div class="newValue"><input type="text" name="firstName" id="firstName"/></div>
															<div class="newParam">По-батькові</div>
															<div class="newValue"><input type="text" name="middleName"/></div>
															<div class="newParam">Спеціалізація</div>
															<div class="newValue"><input type="text" name="speciality"/></div>
															<div class="newParam">Логін</div>
															<div class="newValue"><input type="text" name="login" id="login"/></div>
															<div class="newParam">Пароль</div>
															<div class="newValue"><input type="text" name="password"/></div>
															<div class="newParam">Роль</div>
															<!-- <div class="newValue">
																<s:select list="{'WORKER','ADMIN'}" name="role"/>  
															</div>-->
															 <div class="newValue">
																<select name="role" >
   																	<option value="WORKER">WORKER</option>
   																 	<option value="ADMIN">ADMIN</option>
																</select> 
															
															<div class="newParam">Відділення</div>
															<div class="newValue">
																<select name="department" id="department">
   																	<option value="WORKER">====</option>
   																 	<option value="ADMIN">---</option>
																</select> 
																				
															</div>
															<div class="newParam"></div>
															<div class="newValue">
																<input type="submit"  value="Додати працівника"  /> 					
															</div>
															</div>
																
															
															
															</form>
</body>
</html>